﻿@model Wiwi.ViewModels.SupplierMatchingWiwi
           
@{
    Layout = "../Shared/_Layout2.cshtml";
    ViewBag.Title = "Matching WiWi";

}

<div class="grid_8 box-shadow margin-top">

    <h4 class="tabbed xWide">Your Matched WiWi</h4>

@* Default select box *@
@if (Model.Wants == null)
{
        <div class="wiwi-profile-pitches-box">

            <p class="serif-it">Select a keyword from the right!</p>

        </div>
        <hr />
}

@* The Resulting Matching WiWi's *@
@if (Model.Wants != null)
{
    foreach (var wnt in Model.Wants)
    {      
          @Html.Partial("~/Views/Shared/_WantControl.cshtml", wnt)
	    <hr />   
    }
}
</div>

@* Keyword Links *@
<div class="grid_5 box-shadow margin-top">

    <h4 class="tabbed xWide">Your Keywords</h4>

    <ul class="inline padding10">
        <li>Key : </li>
        <li class="green-button button-m">Exact Search</li>
        <li class="blue-button button-m">All Search</li>
    </ul>

    <p class="margin-left">Search with your Keywords</p>

    <ul class="no-list padding">
       
    @foreach (var mt in Model.matches)
    {

        if (mt.SearchType == "E")
        {       
            <li><a href="/Want/MatchWiwi?Keyword=@mt.Want_KeywordID" class="green-button button-m">@mt.keyword</a></li>
        }
        else
        {
            <li><a href="/Want/MatchWiwi?Keyword=@mt.Want_KeywordID" class="blue-button button-m">@mt.keyword</a></li>
        }

    }

    </ul>

</div>

